package org.devgframwork.datasync.admin.rabbit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.devgframwork.datasync.admin.rabbit.dao.CanalConfigMapper;
import org.devgframwork.datasync.core.entity.CanalConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CanalConfigService extends ServiceImpl<CanalConfigMapper, CanalConfig> {

    @Autowired
    private CanalConfigMapper canalConfigMapper;

    public List<CanalConfig> getCanalConfigList() {
        QueryWrapper<CanalConfig> queryWrapper = new QueryWrapper();
        queryWrapper.eq("IS_DELETE", 0);
        return canalConfigMapper.selectList(queryWrapper);
    }
}
